<template name="orders">
	<div class="x7-soldGoods-select">
		<select class="x7-orders-select" id="sid">  
			<option value="">全部商品</option>  
            {{#each goodsList}}
            <option value="{{id}}">{{name}}</option>
            {{/each}}
   	 	</select>
		<div class="x7-soldGoods-date">
			<input class="x7-soldGoods-input" type="date" value="{{date}}" id="startTime">
			<input class="x7-soldGoods-input" type="date" value="{{date}}" id="endTime">
		</div>
	</div>
	<div class="list-block media-list f7-order-list-block">
		<ul>
			{{#each ordersList}}
			<li>
				<a href="/order/{{id}}">
					<div class="item-content f7-order-item-content">
						<div class="item-media">
							{{#if goods.list_image.path}}
								<img src="{{goods.list_image.path}}" width="80" height="80">
							{{else}}
								{{#if merchant.list_image.path}}
									<img src="{{merchant.list_image.path}}" width="80" height="80">
								{{/if}}
							{{/if}}
						</div>
						<div class="item-inner">
							<div class="item-title-row">
								<div class="item-title">订单编号：{{order_no}}</div>
							</div>
							<div class="item-subtitle x7-orders-font">
								{{#if goods}}
								商品名：<div>{{#each goods}}<p>{{goods_name}}</p>{{/each}}</div>
								{{/if}}
							</div>
							<div class="item-text x7-orders-font">
								<div>下单时间：{{pay_time}}</div>
								<div>实付：{{pay_fee}}</div>
							</div>
						</div>
					</div>
				</a>
			</li>
			{{/each}}
		</ul>
	</div>
</template>